/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.djdb.shop;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/**
* @author Lieven Roegiers
* @copyright 2013
* @from MY_SHOP
*/
@Entity
@NamedQueries({
    @NamedQuery(name="Mail.findAll",query="SELECT m FROM Mail m"),
    @NamedQuery(name="Mail.findBySerialnr",query="SELECT m FROM Mail m WHERE m.id = :id"),
})
public class Mail{
    @Id @GeneratedValue(generator = "MAIL_ID")
    private Long id; 
    private String templatelink;
    private String type;
    private String utm_medium= "email";
    private String utm_source;
    private String utm_campaign;
    public String getLink() {
        return templatelink;
    }
    public void setLink(String templatelink) {
        this.templatelink = templatelink;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }

    public long getId() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
